<?php $this->pageTitle=Yii::app()->name; ?>
<?php

   // ON TAB 1: THIS IS STATIC CONTENT THAT IS TO BE DISPLAYED
   $Content1 = 'This is content that is to be displayed on tab 1';

   // ON TAB 2: DISPLAY THE USER LIST WHICH IS THE SAME AS THE OUTPUT OF
   // index.php?r=user/list

   // GET THE DATA FOR USE BY THE TAB PAGE VIEW WHEN GENERATING THE OUTPUT
   $Content2= 'This is content for tab 2'; // ??? should this be moved into the site controller???

   // DATA ATTACHED TO THE $viewData IS PASSED IN TO THE CTabView
   // WHERE THE VIEW FOR THE TAB PAGE CAN USE IT TO GENERATE THEIR OUTPUT


   // ** I GOT STUCK HERE FOR A WHILE...
   // FOR TAB2, VIEW SPECIFICATION, MUST HAVE LEADING "/" OTHERWISE
   // Yii WILL LOOK FOR THE VIEW FILE UNDER THE site INSTEAD OF user
   $Tabs = array
               (
                  'do'=>array('title'=>'D/O Info','content'=>$Content1),
                  'invoice'=>array('title'=>'Invoice Details','content'=>$Content2),
                  'tab2'=>array('title'=>'Invoice Details','content'=>$Content2),
               );

   // THERE ARE EXAMPLE CODE WHERE THE Widget() CAN INCORPORATE
   // THE $viewData and $Tabs VALUES DIRECTLY BUT THIS IS EASIER TO UNDERSTAND....
   $this->widget('CTabView', array('tabs'=>$Tabs));

?>